﻿<%@ Page Language="C#" MasterPageFile="~/Medianamik/MasterPages/MedianamikModule.master" 
    AutoEventWireup="True" CodeBehind="Edit.aspx.cs" 
    Inherits="Medianamik.UI.Web.Shop.ShopEditProductType" ValidateRequest="false" %>
<%@ Import Namespace="Medianamik.Globalization" %>
    
<%@ Register src="~/medianamik/typemanagement/Controls/IconPicker.ascx" tagname="IconPicker" tagprefix="med" %>

<asp:Content ContentPlaceHolderID="HeaderContentHolder" runat="server">
    <style type="text/css">
        .EditionPage 
        {
            font-weight: bold;
        }
    </style>
</asp:Content>

<asp:Content ContentPlaceHolderID="ContextMenu" runat="server">
    <asp:LinkButton ID="SaveLinkButton" runat="server" CssClass="Action BtSauvegarder" OnClick="Save" 
        Text="<%$ Resources : Medianamik_Global, SaveButtonText %>" />
    <asp:HyperLink ID="CancelLink" runat="server" Text="<%$ Resources: Medianamik_Global, Cancel %>" CssClass="Action BtAnnuler unlock" />
</asp:Content>

<asp:Content ContentPlaceHolderID="CenterContent" runat="server">
    <p><asp:UpdatePanel ID="uplValidation" runat="server" UpdateMode="Always">
	    <ContentTemplate>
            <asp:ValidationSummary EnableClientScript="false" runat="server" CssClass="ValidationSummary" />
        </ContentTemplate>
    </asp:UpdatePanel></p>
    <p><%= Translator.Translate("Medianamik_Shop", "EditProductType_Intro") %></p>
    <div>
        <h2><%= Translator.Translate("Medianamik_Shop", "EditProductType_Name")%></h2>
        <p><%= Translator.Translate("Medianamik_Shop", "EditProductType_NameDesc")%></p>
        <med:TranslatorBox runat="server" ID="TypeNameTranslations" Required="true" ErrorMessage='<%$ Resources: medianamik_typemanagement, TranslationRequired %>' />
    </div>
    <div>
        <h2><%= Translator.Translate("Medianamik_Shop", "EditProductType_Icon")%></h2>
        <p><%= Translator.Translate("Medianamik_Shop", "EditProductType_IconDesc")%></p>
        <med:IconPicker ID="IconPicker" runat="server" />&nbsp;<span><%= Translator.Translate("Medianamik_Shop", "Edit_ChooseIcon")%></span>
    </div>
</asp:Content>